import { _decorator, Component, instantiate, Node, Prefab, UITransform } from 'cc';
import { ResManager } from '../../../core/modules/res/resManager';
import { G_VIEW_SIZE } from '../../../../Boots/Boost';
import { UiManager } from '../../../core/modules/ui/UiManager';
import { Match } from './Match3';
const { ccclass, property } = _decorator;

@ccclass('Match3Entry')
export class Match3Entry extends Component {

    async init(){
        // ResManager.getInstance().loadPrefab("Match3BN","prefab/match3",prefab => {
        //     let match3Node = instantiate(prefab);
        //     this.node.addChild(match3Node);
        //     match3Node.getComponent(UITransform).setContentSize(G_VIEW_SIZE.clone())
        // });
        UiManager.getInstance().open(Match)
    }

}


